Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then¬ -- Close any existing windows by same name¬ if there is a window (gProgressWindowName) then¬ wsSend gProgressWindowName,"0","Close"¬ end if¬ ¬ wsSet "Progress2","0","Name",gProgresswindowName ¬ centerWindow gProgressWindowName,3¬ ¬ if not wsGet(gProgressWindowName,"Stop","Visible") then¬ wsSet gProgressWindowName,"progressBar","Width", wsget(gProgressWindowName,"ProgressBar","Width") + 65¬ end if ¬ ¬ if wsGet(gProgressWindowName,"StopMesssage","Visible") then¬ wsSet gProgressWindowName,0,"Height",80¬ else¬ wsSet gProgressWindowName,0,"Height",70¬ end if ¬end if¬¬--end windowEvent¬¬